package com.kly.chatter.db.dao;

import com.fqgj.common.base.BaseMapper;
import com.kly.chatter.db.entity.ChatterDashboardInfoEntity;

/**
 * User: a
 * Date: 2023-10-07
 * Time: 15:45:34.871
 */

public interface ChatterDashboardInfoDao extends BaseMapper<ChatterDashboardInfoEntity> {

    /**
     * 读取chatter dashboard数据
     * @param userCode
     * @param currentDate
     * @return
     */
    ChatterDashboardInfoEntity getDashboardInfo(String userCode, Integer currentDate);

    ChatterDashboardInfoEntity getWeekDashboardInfo(String userCode, Integer startDate, Integer endDate);

    /**
     * 计算chatter当天ppv数量
     * @param userCode
     * @param currentDate
     * @return
     */
    Integer getPPVCount(String userCode, Integer currentDate);

}